package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.Build;
import com.trkj.vo.BuildVo;

public interface IBuildDao extends CrudRepository<Build, String> {
	
	@Query("select new com.trkj.vo.BuildVo(B.buildId,B.buildname) from Build B where B.buildname like '%住院%'")
	public List<BuildVo> queryAllLiveBuild();

}
